package yf.mall.enums;

import lombok.Getter;


/**
 * @author hxf
 * @email 505860922@qq.com
 * @date Sun Sep 29 11:12:45 CST 2019
 */
@Getter
public enum MallGoodsSaleTypeEnum {


    RETAIL(0, "生活精品" ),

    AGENT(1, "品牌代理" ),

    VOUCHER(3,"免费换购"),

    STORES(5,"门店采购"),

    DAY_SEL(6,"每日优选"),

    LOTTERY(7,"奖品"),

    //后面的将会弃用

    WISDOM(13,"智慧门店"),
    CARD(16,"礼品专区"),

    CLEAR(17,"清货");




    int index;
    String value;

    MallGoodsSaleTypeEnum(int index, String value) {
        this.index = index;
        this.value = value;
    }

    public static String indexOf(int idx) {
        return MallGoodsSaleTypeEnum.values()[idx].getValue();
    }

}
